<?php

namespace app\common\model;

/**
 * [Ping  屏蔽表]
 * @author [C。]
 * @return html
 */
class Ping extends Base
{
    protected $name = 'ping';

    /**
     * 根据搜索条件获取列表信息
     */
    public function getlist($from = 0, $size = 5)
    {
        $order = ['id' => 'desc'];
        $result = $this->order($order)->limit($from, $size)->select();
        return $result;
    }
    /**
     * 根据搜索条件获取总条数
     */
    public function getCount()
    {
        $result = $this->count();
        return $result;
    }
}